<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  <meta name="google-site-verification" content="k9iQUbEI9rWq3xYeh63ATztKdkthC4dNRHV_25maJ3Q" />
  <title>几个值得深思的 PHP 面试问题 | Taylor&#39;s Learning Diary</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="5个值得深思的 PHP 面试问题文章所罗列的问题虽然看似简单，但是每个背后都涵盖了一个或几个大家容易忽视的基础知识点，希望能够帮助到你的面试和平时工作。">
<meta name="keywords" content="php">
<meta property="og:type" content="article">
<meta property="og:title" content="几个值得深思的 PHP 面试问题">
<meta property="og:url" content="https://upeng.github.io/blog/2016/05/28/php-detail/index.html">
<meta property="og:site_name" content="Taylor&#39;s Learning Diary">
<meta property="og:description" content="5个值得深思的 PHP 面试问题文章所罗列的问题虽然看似简单，但是每个背后都涵盖了一个或几个大家容易忽视的基础知识点，希望能够帮助到你的面试和平时工作。">
<meta property="og:locale" content="zh-CN">
<meta property="og:updated_time" content="2017-09-28T15:11:10.591Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="几个值得深思的 PHP 面试问题">
<meta name="twitter:description" content="5个值得深思的 PHP 面试问题文章所罗列的问题虽然看似简单，但是每个背后都涵盖了一个或几个大家容易忽视的基础知识点，希望能够帮助到你的面试和平时工作。">
  
    <link rel="alternate" href="/atom.xml" title="Taylor&#39;s Learning Diary" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  <link rel="stylesheet" href="/blog/css/style.css">
  

</head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/blog/" id="logo">Taylor&#39;s Learning Diary</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/blog/">Home</a>
        
          <a class="main-nav-link" href="/blog/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="搜索"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="https://upeng.github.io/blog"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-php-detail" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/blog/2016/05/28/php-detail/" class="article-date">
  <time datetime="2016-05-27T16:04:26.000Z" itemprop="datePublished">2016-05-28</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/blog/categories/PHP/">PHP</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      几个值得深思的 PHP 面试问题
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <p>5个值得深思的 PHP 面试问题<br>文章所罗列的问题虽然看似简单，但是每个背后都涵盖了一个或几个大家容易忽视的基础知识点，希望能够帮助到你的面试和平时工作。<br><a id="more"></a><br><strong>Q1</strong><br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div></pre></td><td class="code"><pre><div class="line"><span class="variable">$str1</span> = <span class="string">'hello world'</span>;</div><div class="line"><span class="variable">$str2</span> = <span class="string">'he'</span>;</div><div class="line"><span class="keyword">if</span> (strpos(<span class="variable">$str1</span>, <span class="variable">$str2</span>))</div><div class="line">&#123;</div><div class="line">    <span class="built_in">echo</span> <span class="string">"/"</span><span class="string">" . <span class="variable">$str1</span> . "</span>/<span class="string">" contains /"</span><span class="string">" . <span class="variable">$str2</span> . "</span>/<span class="string">""</span>;</div><div class="line">&#125;</div><div class="line"><span class="keyword">else</span></div><div class="line">&#123;</div><div class="line">	<span class="built_in">echo</span> <span class="string">"/"</span><span class="string">" . <span class="variable">$str1</span> . "</span>/<span class="string">" does not contain /"</span><span class="string">" . <span class="variable">$str2</span> . "</span>/<span class="string">""</span>;</div><div class="line">&#125;</div></pre></td></tr></table></figure></p>
<p>正确运行的输出结果:<br><!-- more --><br><code>&quot;hello world&quot; does not contain &quot;he&quot;</code><br>strpos是返回字符串str2在str1的位置，没有找到则返回false；php是弱类型语言；然而实际上这次返回了0而在if语句中0也被当作false,所以我们需要对false做类型判断，正确的代码如下:</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div></pre></td><td class="code"><pre><div class="line"><span class="variable">$str1</span> = <span class="string">'hello world'</span>;</div><div class="line"><span class="variable">$str2</span> = <span class="string">'he'</span>;</div><div class="line"><span class="keyword">if</span> (strpos(<span class="variable">$str1</span>, <span class="variable">$str2</span>) !== <span class="literal">false</span>)</div><div class="line">&#123;</div><div class="line">	<span class="built_in">echo</span> <span class="string">"/"</span><span class="string">" . <span class="variable">$str1</span> . "</span>/<span class="string">" contains /"</span><span class="string">" . <span class="variable">$str2</span> . "</span>/<span class="string">""</span>;</div><div class="line">&#125;</div><div class="line"><span class="keyword">else</span></div><div class="line">&#123;</div><div class="line">	<span class="built_in">echo</span> <span class="string">"/"</span><span class="string">" . <span class="variable">$str1</span> . "</span>/<span class="string">" does not contain /"</span><span class="string">" . <span class="variable">$str2</span> . "</span>/<span class="string">""</span>;</div><div class="line">&#125;</div></pre></td></tr></table></figure>
<p>需要注意的是我们使用了!==，在php 和 JS中= !相对== 更为严格需要要求数据类型一致。</p>
<p><strong>Q2</strong><br>下面的输出结果会是怎样？</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div></pre></td><td class="code"><pre><div class="line"><span class="variable">$x</span> = 5;</div><div class="line"><span class="built_in">echo</span> <span class="variable">$x</span>;</div><div class="line"><span class="built_in">echo</span> <span class="string">"&lt;br /&gt;"</span>;</div><div class="line"><span class="built_in">echo</span> <span class="variable">$x</span>+++<span class="variable">$x</span>++;</div><div class="line"><span class="built_in">echo</span> <span class="string">"&lt;br /&gt;"</span>;</div><div class="line"><span class="built_in">echo</span> <span class="variable">$x</span>;</div><div class="line"><span class="built_in">echo</span> <span class="string">"&lt;br /&gt;"</span>;</div><div class="line"><span class="built_in">echo</span> <span class="variable">$x</span>---<span class="variable">$x</span>--;</div><div class="line"><span class="built_in">echo</span> <span class="string">"&lt;br /&gt;"</span>;</div><div class="line"><span class="built_in">echo</span> <span class="variable">$x</span>;</div></pre></td></tr></table></figure>
<p>实际运行结果是</p>
<figure class="highlight lsl"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div></pre></td><td class="code"><pre><div class="line"><span class="number">5</span></div><div class="line"><span class="number">11</span></div><div class="line"><span class="number">7</span></div><div class="line"><span class="number">1</span></div><div class="line"><span class="number">5</span></div></pre></td></tr></table></figure>
<p>关于 $x++ 和 $x–这个问题其实非常容易遇见，我们只需记住$x++使用最近的值，然后才自增。<br>运算符的优先级，++ 是明显高于 +，因此先执行++ 再执行 + 。关于运算符的优先级，有的时候我们真的可以通过括号来让我们的程序更让人直观的了解，毕竟代码不光是用于执行的，有的时候或许团队的可读性也是提高效率的一种。<br><strong>Q3</strong><br>关于变量的引用；<br><figure class="highlight shell"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line"><span class="meta">$</span><span class="bash">a = <span class="string">'1'</span>;</span></div><div class="line"><span class="meta">$</span><span class="bash">b = &amp;<span class="variable">$a</span>;</span></div><div class="line"><span class="meta">$</span><span class="bash">b = <span class="string">"2<span class="variable">$b</span>"</span>;</span></div></pre></td></tr></table></figure></p>
<p>请问 $a 和 $b的值各位多少<br>部分第一时间会想到 $a=’1’  $b=’21’,仔细一看 $b=&amp;$a,这里$b是变量$a的引用而不是直接 赋值。</p>
<p><strong>Q4</strong><br>下面是true还是false</p>
<figure class="highlight lsl"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line">var_dump(<span class="number">0123</span> == <span class="number">123</span>)；</div><div class="line">var_dump('<span class="number">0123</span>' == <span class="number">123</span>);</div><div class="line">var_dump('<span class="number">0123</span>' == <span class="number">123</span>);</div></pre></td></tr></table></figure>
<p>var_dump(0123 == 123);// false,PHP会默认把0123当作8进制来处理，实际转化为10进制就是83，显然这不是相等的。<br>var_dump(’0123′ == 123);// true这里php会非常有趣的将’0123′转换成一个数字而且默认去掉了前面的0也就是123==123<br>var_dump(’0123′ === 123);// false很显然上面的问题已经说过了数字和字符串类型不一致。</p>
<p><strong>Q5</strong><br>下面的代码有什么问题吗？输出会是什么，怎样修复它</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div></pre></td><td class="code"><pre><div class="line"><span class="meta">$</span><span class="bash">referenceTable = array();</span></div><div class="line">referenceTable['val1'] = array(1, 2);</div><div class="line">referenceTable['val2'] = 3;</div><div class="line">referenceTable['val3'] = array(4, 5);</div><div class="line"></div><div class="line"><span class="meta">$</span><span class="bash">testArray = array();</span></div><div class="line"></div><div class="line"><span class="meta">$</span><span class="bash">testArray = array_merge(<span class="variable">$testArray</span>, <span class="variable">$referenceTable</span>[<span class="string">'val1'</span>]);</span></div><div class="line"><span class="meta">var_dump($</span><span class="bash">testArray);</span></div><div class="line"><span class="meta">$</span><span class="bash">testArray = array_merge(<span class="variable">$testArray</span>, <span class="variable">$referenceTable</span>[<span class="string">'val2'</span>]);</span></div><div class="line"><span class="meta">var_dump($</span><span class="bash">testArray);</span></div><div class="line"><span class="meta">$</span><span class="bash">testArray = array_merge(<span class="variable">$testArray</span>, <span class="variable">$referenceTable</span>[<span class="string">'val3'</span>]);</span></div><div class="line"><span class="meta">var_dump($</span><span class="bash">testArray);</span></div></pre></td></tr></table></figure>
<p>实际输出如下：<br><figure class="highlight zephir"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line"><span class="keyword">array</span>(<span class="number">2</span>) &#123;[<span class="number">0</span>] =&gt; <span class="keyword">int</span>(<span class="number">1</span>) [<span class="number">1</span>] =&gt; <span class="keyword">int</span>(<span class="number">2</span>)&#125;</div><div class="line"><span class="keyword">NULL</span></div><div class="line"><span class="keyword">NULL</span></div></pre></td></tr></table></figure></p>
<p>运行的时候你或许还能看到下面的警告</p>
<figure class="highlight ada"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">warning: array_merge() : <span class="type">Argument</span> #<span class="number">2</span> <span class="keyword">is</span> <span class="keyword">not</span> an <span class="keyword">array</span></div><div class="line">warning: array_merge() : <span class="type">Argument</span> #<span class="number">1</span> <span class="keyword">is</span> <span class="keyword">not</span> an <span class="keyword">array</span></div></pre></td></tr></table></figure>
<p>array_merge需要传入的参数都是数组，如果不是，则会返回null。 你可以这样修改</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line"><span class="meta">$</span><span class="bash">testArray = array_merge(<span class="variable">$testArray</span>, (array)<span class="variable">$referenceTable</span>[<span class="string">'val1'</span>]);</span></div><div class="line"><span class="meta">var_dump($</span><span class="bash">testArray);</span></div><div class="line"><span class="meta">$</span><span class="bash">testArray = array_merge(<span class="variable">$testArray</span>, (array)<span class="variable">$referenceTable</span>[<span class="string">'val2'</span>]);</span></div><div class="line"><span class="meta">var_dump($</span><span class="bash">testArray);</span></div><div class="line"><span class="meta">$</span><span class="bash">testArray = array_merge(<span class="variable">$testArray</span>, (array)<span class="variable">$referenceTable</span>[<span class="string">'val3'</span>]);</span></div><div class="line"><span class="meta">var_dump($</span><span class="bash">testArray);</span></div></pre></td></tr></table></figure>

      
    </div>
    <footer class="article-footer">
      <a data-url="https://upeng.github.io/blog/2016/05/28/php-detail/" data-id="cj8x7818u002hgwp4vw8ngwzq" class="article-share-link">Share</a>
      
        <a href="https://upeng.github.io/blog/2016/05/28/php-detail/#disqus_thread" class="article-comment-link">留言</a>
      
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/blog/tags/php/">php</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/blog/2016/05/29/laravel-auth/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          laravel学习笔记-用户认证
        
      </div>
    </a>
  
  
    <a href="/blog/2016/05/07/laravel-migration/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">laravel migration</div>
    </a>
  
</nav>

  
</article>


<section id="comments">
  <div id="disqus_thread">
    <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  </div>
</section>
</section>
        
          <aside id="sidebar">
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">分类</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/blog/categories/Linux/">Linux</a><span class="category-list-count">8</span></li><li class="category-list-item"><a class="category-list-link" href="/blog/categories/MySQL/">MySQL</a><span class="category-list-count">6</span></li><li class="category-list-item"><a class="category-list-link" href="/blog/categories/PHP/">PHP</a><span class="category-list-count">15</span></li><li class="category-list-item"><a class="category-list-link" href="/blog/categories/Thinking/">Thinking</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/blog/categories/其他/">其他</a><span class="category-list-count">8</span></li><li class="category-list-item"><a class="category-list-link" href="/blog/categories/前端/">前端</a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/blog/categories/数据库范式/">数据库范式</a><span class="category-list-count">1</span></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">标签云</h3>
    <div class="widget tagcloud">
      <a href="/blog/tags/CI/" style="font-size: 10px;">CI</a> <a href="/blog/tags/JQuery/" style="font-size: 10px;">JQuery</a> <a href="/blog/tags/Mac/" style="font-size: 13.33px;">Mac</a> <a href="/blog/tags/MySQL/" style="font-size: 10px;">MySQL</a> <a href="/blog/tags/awk/" style="font-size: 10px;">awk</a> <a href="/blog/tags/bash/" style="font-size: 10px;">bash</a> <a href="/blog/tags/composer/" style="font-size: 10px;">composer</a> <a href="/blog/tags/eloquent/" style="font-size: 10px;">eloquent</a> <a href="/blog/tags/hexo/" style="font-size: 10px;">hexo</a> <a href="/blog/tags/idempotence/" style="font-size: 10px;">idempotence</a> <a href="/blog/tags/item/" style="font-size: 10px;">item</a> <a href="/blog/tags/laravel/" style="font-size: 20px;">laravel</a> <a href="/blog/tags/linux/" style="font-size: 16.67px;">linux</a> <a href="/blog/tags/mac/" style="font-size: 10px;">mac</a> <a href="/blog/tags/memcacheq/" style="font-size: 10px;">memcacheq</a> <a href="/blog/tags/mysql/" style="font-size: 16.67px;">mysql</a> <a href="/blog/tags/nc/" style="font-size: 10px;">nc</a> <a href="/blog/tags/packageist/" style="font-size: 10px;">packageist</a> <a href="/blog/tags/php/" style="font-size: 13.33px;">php</a> <a href="/blog/tags/sed/" style="font-size: 10px;">sed</a> <a href="/blog/tags/shell/" style="font-size: 10px;">shell</a> <a href="/blog/tags/static/" style="font-size: 10px;">static</a> <a href="/blog/tags/thinking/" style="font-size: 13.33px;">thinking</a> <a href="/blog/tags/tmux/" style="font-size: 10px;">tmux</a> <a href="/blog/tags/vagrant/" style="font-size: 10px;">vagrant</a> <a href="/blog/tags/validator/" style="font-size: 10px;">validator</a> <a href="/blog/tags/vim/" style="font-size: 10px;">vim</a> <a href="/blog/tags/vuejs/" style="font-size: 10px;">vuejs</a> <a href="/blog/tags/zephir/" style="font-size: 10px;">zephir</a> <a href="/blog/tags/zsh/" style="font-size: 10px;">zsh</a> <a href="/blog/tags/设计模式/" style="font-size: 13.33px;">设计模式</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">归档</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/blog/archives/2017/10/">十月 2017</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/blog/archives/2017/09/">九月 2017</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/blog/archives/2016/12/">十二月 2016</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/blog/archives/2016/11/">十一月 2016</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/blog/archives/2016/10/">十月 2016</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/blog/archives/2016/09/">九月 2016</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/blog/archives/2016/08/">八月 2016</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/blog/archives/2016/07/">七月 2016</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/blog/archives/2016/06/">六月 2016</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/blog/archives/2016/05/">五月 2016</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/blog/archives/2016/04/">四月 2016</a><span class="archive-list-count">7</span></li><li class="archive-list-item"><a class="archive-list-link" href="/blog/archives/2016/02/">二月 2016</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/blog/archives/2016/01/">一月 2016</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/blog/archives/2015/10/">十月 2015</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/blog/archives/2015/08/">八月 2015</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/blog/archives/2015/07/">七月 2015</a><span class="archive-list-count">1</span></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">最新文章</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/blog/2017/10/18/laravel-validator/">Laravel Validator自定义参数验证规则</a>
          </li>
        
          <li>
            <a href="/blog/2017/09/28/linux-sed/">linux常用命令之sed</a>
          </li>
        
          <li>
            <a href="/blog/2017/09/27/shell-script-learning/">shell脚本由点到面学习总结</a>
          </li>
        
          <li>
            <a href="/blog/2017/09/14/laravel-eloquent-index/">Eloquent ORM多个and和or条件查询</a>
          </li>
        
          <li>
            <a href="/blog/2017/09/10/Linux压缩解压缩命令-index/">Linux常用压缩解压缩命令</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2017 Tayloryu<br>
      Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/blog/" class="mobile-nav-link">Home</a>
  
    <a href="/blog/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    
<script>
  var disqus_shortname = 'tayloryu';
  
  var disqus_url = 'https://upeng.github.io/blog/2016/05/28/php-detail/';
  
  (function(){
    var dsq = document.createElement('script');
    dsq.type = 'text/javascript';
    dsq.async = true;
    dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  })();
</script>


<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  <link rel="stylesheet" href="/blog/fancybox/jquery.fancybox.css">
  <script src="/blog/fancybox/jquery.fancybox.pack.js"></script>


<script src="/blog/js/script.js"></script>
  </div>
</body>
</html>